package com.sunpy.niohttp.model;


import javax.validation.constraints.NotNull;

/**
 * 配置类模型
 */
public class ConfigInfo {

    @NotNull
    private String serverName ="nio-http";

    @NotNull
    private String serverIP = "127.0.0.1";

    @NotNull
    private int serverPort = 9999;

    public ConfigInfo() {
    }

    public ConfigInfo(String serverName, String serverIP, int serverPort) {
        this.serverName = serverName;
        this.serverIP = serverIP;
        this.serverPort = serverPort;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getServerIP() {
        return serverIP;
    }

    public void setServerIP(String serverIP) {
        this.serverIP = serverIP;
    }

    public int getServerPort() {
        return serverPort;
    }

    public void setServerPort(int serverPort) {
        this.serverPort = serverPort;
    }
}
